package com.itheima.test5;

import java.io.Serializable;

/**
 * @Author:gy
 * @Date: 2025/08/31 16:18
 * @Description:
 */
public class Student implements Serializable {
    private String name;
    private int age;
    public String Sid;
    private static final long serialVersionUID = 58L;
    public Student() {
    }

    public Student(String name, int age, String sid) {
        this.name = name;
        this.age = age;
        Sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSid() {
        return Sid;
    }

    public void setSid(String sid) {
        Sid = sid;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", Sid='" + Sid + '\'' +
                '}';
    }
}
